home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_06_04
/
v6n4051a.txt
< prev
next >
Wrap
Text File
|
1989-09-26
|
568b
|
26 lines
/* these must change if the underlying
cell representation changes */
typedef int qele_type;
#define qele_cpy(x,y) x=y
#define qele_incr(x) x+=1
#define q_NIL 0
#define EMPTY -99
#define FULL -98
#define NORMAL -97
/* these define the "public interface" to the
operations legal on the cyclic buffer named "queue" */
extern qele_type q_get(void);
extern qele_type q_put(qele_type);
extern int q_free(void);
extern int q_bsy(void);
/* these change if the queue length is
to change */
#define q_MAX 128
#define q_WRAP q_MAX-1